<style>
    .new-form-control{
        margin-left: 10px;
        width: 200px;
        padding: 5px 10px;
        height: 30px;
        font-size: 12px;
        line-height: 1.5;
        border-radius: 3px;
        box-shadow: none;
        color: #555;
        background-color: #fff;
        background-image: none;
        border: 1px solid #ccc;
    }
</style>
<div class="box">
  <div class="box-header">
      
    <div class="row">
        <!--<div class="col-sm-4">-->
            <!--<ob_link><a class="btn" href="{:url('coinAdd')}"><i class="fa fa-plus"></i> 新 增</a></ob_link>-->
        <!--</div>-->

        <div class="col-sm-10">
            <div class="box-tools search-form">
                <div class="input-group input-group-sm">

                    <!--<input type="date" style="margin-left: 15px;width: 200px;"  class="form-control" id="date" name="date" placeholder="开始日期"   value="{:input('date')}"/>-->
                    <!--<input type="date" style="margin-left: 15px;width: 200px;"  class="form-control" id="date1" name="date1" placeholder="结束日期"   value="{:input('date1')}"/>-->
                    <input type="text" style="margin-left: 10px;width: 200px;"  class="form-control" name="search_data" placeholder="币种名称|币种缩写"  value="{:input('search_data')}"/>
                    <select name="platform_id" class="new-form-control">
                        <option value="" >全部平台</option>
                        {volist name='tags' id='vo'}
                        <option value="{$vo['id']}" {notempty name="param['platform_id']"}{if condition="$param['platform_id'] eq $vo['id']"} selected="selected" {/if}{/notempty} >{$vo['name']}</option>
                        {/volist}
                    </select>
                    <select name="coin_b" class="new-form-control">
                        <option value="" >全部交易对</option>
                        <option value="USDT" {notempty name="param['coin_b']"}{if condition="$param['coin_b'] eq 'USDT'"} selected="selected" {/if}{/notempty} >USDT</option>
                        <option value="ETH" {notempty name="param['coin_b']"}{if condition="$param['coin_b'] eq 'ETH'"} selected="selected" {/if}{/notempty} >ETH</option>
                        <option value="BTC" {notempty name="param['coin_b']"}{if condition="$param['coin_b'] eq 'BTC'"} selected="selected" {/if}{/notempty} >BTC</option>
                        <option value="HT" {notempty name="param['coin_b']"}{if condition="$param['coin_b'] eq 'HT'"} selected="selected" {/if}{/notempty} >HT</option>

                    </select>
                    <div class="input-group-btn"  style="display:inline-block">
                      <button type="button" id="search"  url="{:url('coinlist')}" class="btn btn-info btn-flat"><i class="fa fa-search"></i></button>
                    </div>

                </div>
           </div>
        </div>
    </div>

  </div>
  <div class="box-body table-responsive">
      <div class="top-table"> <span class="top-table-children">总条数:{$list['count']}</span>  </div>
    <table  class="table table-bordered table-hover">
      <thead>
      <tr>

          <th>
              序号
          </th>
          <th>币名称</th>
          <th>所属平台</th>
          <th>交易对</th>
          <th>交易对名称</th>
          <th>是否热门</th>
      </tr>
      </thead>
      
      {notempty name='list.list'}
        <tbody>
            {volist name='list.list' id='vo' key="k"}
                <tr>

                  <td>
                    {$k}
                  </td>
                  <td>
                    {$vo.coin_a}


                  </td>

                    <td>
                        {$vo.platform.name}

                    </td>
                    <td>
                        {$vo.coin_b}

                    </td>

                    <td>
                        {$vo.transaction_pairs}

                    </td>



                    <td><a class="ajax-get" href="javascript:;">
                        {if condition="$vo['is_hot'] eq 1"}
                        <ob_link><a class="ajax-get" href="{:url('update_info', array('id' => $vo['id'], 'is_hot' =>0))}">  <span class='badge bg-green'>热门</span></a></ob_link>

                        {else/}
                        <ob_link><a class="ajax-get" href="{:url('update_info', array('id' => $vo['id'], 'is_hot' => 1))}">  <span class='badge bg-red'>不热门</span></a></ob_link>

                        {/if}
                    </a></td>
                </tr>
            {/volist}
        </tbody>
        {else/}
        <tbody><tr class="odd"><td colspan="12" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
      {/notempty}
    </table>


  </div>
  <div class="box-footer clearfix text-center">
      {$list.list->render()}
  </div>
</div>